function Person(name,age,gender){
    var o = new Object();
    o.name = name;
    o.age = age;
    o.gender = gender;
    o.sayName = function(){
        console.log(this.name)
    }
    return o;
}
var person = new Person('moyu',23,'female')
person.sayName();
